<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<?php if (!isset($url)) $url = url_for($sf_context->getModuleName() . '/' . ($form->getObject()->isNew() ? 'create' : 'update') . (!$form->getObject()->isNew() ? '?id=' . $form->getObject()->getId() : '')) ?>
<form action="<?php echo $url ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?> class="formN">
    <?php echo $form->renderHiddenFields() ?>
    <?php if (!$form->getObject()->isNew()): ?>
        <input type="hidden" name="sf_method" value="put" />
    <?php endif; ?>
    <?php echo $form ?>
    <div class="holder">
        <button type="submit" ><?php echo __('Save') ?></button>
        <a href="<?php echo url_for($sf_context->getModuleName() . '/index') ?>"><?php echo __('Back to list') ?></a>
    </div>
</form>
